package com.singlemountaintech.haogongjiang.model.response;

/**
 * 登录
 * Created by SMT7 on 2017/12/26.
 */

public class LoginModel {

    /**
     * status : SUCCESS
     * timestamp : 1514344944027
     * token : eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxODIwMTM5OTk3NiIsImlhdCI6MTUxNDM0NDk0NDAyNiwianRpIjoiMTMwNjY1MDk0MzM3MTM4Njg4IiwiaWlkIjoiMTMwNjY1MDk0MzM3MTM4Njg4IiwiaXAiOiIxODIuNTAuMTE3LjIxOCIsInJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE1MTQzNTIxNDR9.--o1aK_S-b2-pg5zgSvDWdyqS8-WzOiZH8ncjfNs6AJ3ZMFbgGIe8-JxkDBdDvpGe6SUqjU55WVjp-13OfBdBQ
     * refreshToken : eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxODIwMTM5OTk3NiIsImlhdCI6MTUxNDM0NDk0NDAyNiwianRpIjoiMTMwNjY1MDk0MzM3MTM4Njg4IiwiaWlkIjoiMTMwNjY1MDk0MzM3MTM4Njg4IiwiaXAiOiIxODIuNTAuMTE3LjIxOCIsInJvbGUiOiJST0xFX1VTRVIiLCJleHAiOjE1MTY5MzY5NDR9.fepGCI45b99-7zX7ZQY49ELafgJ6XoeuIuPhMjAgGfrNaNxpBvnUu94arZTnonqGVYEBKHOYTf5YUVJcZJRm-w
     * object : {"id":"130647762931945472","dateCreated":1514340812000,"lastModified":1514340812000,"recordStatus":0,"version":0,"username":"18201399976","password":"$2a$10$/4HUVBukfgduk3Xb0/h7PeUf8R0RKhn4DYZmPvbZKDCV3QaXDRpMC","sysRole":{"id":"2","dateCreated":1513235768000,"lastModified":1513235768000,"recordStatus":0,"version":0,"roleName":"ROLE_USER","showName":"普通用户"}}
     */

    public int status;
    public long timestamp;
    public String token;
    public String refreshToken;
    public ObjectBean object;
    public String message;
    public String reserve1;


    public static class ObjectBean {
        /**
         * id : 130647762931945472
         * dateCreated : 1514340812000
         * lastModified : 1514340812000
         * recordStatus : 0
         * version : 0
         * username : 18201399976
         * password : $2a$10$/4HUVBukfgduk3Xb0/h7PeUf8R0RKhn4DYZmPvbZKDCV3QaXDRpMC
         * sysRole : {"id":"2","dateCreated":1513235768000,"lastModified":1513235768000,"recordStatus":0,"version":0,"roleName":"ROLE_USER","showName":"普通用户"}
         */

        public String id;
        public long dateCreated;
        public long lastModified;
        public int recordStatus;
        public int version;
        public String username;
        public String password;
        public SysRoleBean sysRole;

        public static class SysRoleBean {
            /**
             * id : 2
             * dateCreated : 1513235768000
             * lastModified : 1513235768000
             * recordStatus : 0
             * version : 0
             * roleName : ROLE_USER
             * showName : 普通用户
             */

            public String id;
            public long dateCreated;
            public long lastModified;
            public int recordStatus;
            public int version;
            public String roleName;
            public String showName;
        }
    }
}
